home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / vms_gcc.mak < prev    next >
Encoding:
Text File  |  1990-12-31  |  4.4 KB  |  192 lines

  1. $ !    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. $ !    Distributed by Free Software Foundation, Inc.
  3. $ !
  4. $ ! This file is part of Ghostscript.
  5. $ !
  6. $ ! Ghostscript is distributed in the hope that it will be useful, but
  7. $ ! WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. $ ! to anyone for the consequences of using it or for whether it serves any
  9. $ ! particular purpose or works at all, unless he says so in writing.  Refer
  10. $ ! to the Ghostscript General Public License for full details.
  11. $ !
  12. $ ! Everyone is granted permission to copy, modify and redistribute
  13. $ ! Ghostscript, but only under the conditions described in the Ghostscript
  14. $ ! General Public License.  A copy of this license is supposed to have been
  15. $ ! given to you along with Ghostscript so you can know your rights and
  16. $ ! responsibilities.  It should be in a file named COPYING.  Among other
  17. $ ! things, the copyright notice and this notice must be preserved on all
  18. $ ! copies.
  19. $ !
  20. $ !
  21. $ ! "makefile" for Ghostscript, VMS / GNU C / DECwindows (X11) configuration.
  22. $ !
  23. $ !
  24. $ ! Execute this command file while in the GhostScript directory!
  25. $ !
  26. $ !
  27. $ ! P1 may be used to specify a DEBUG flag:
  28. $ !
  29. $ !          $ @VMS-GCC.MAK DEBUG
  30. $ !
  31. $ !
  32. $ CDEF = ""
  33. $ LDEF = ""
  34. $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
  35. $ !
  36. $ IF P1 .NES. "DEBUG" THEN GOTO NODEFS
  37. $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
  38. $ LDEF = "/DEBUG"
  39. $ !
  40. $ NODEFS:
  41. $ !
  42. $ !
  43. $ ! Is GNU C about and defined?
  44. $ !
  45. $ IF F$TRNLNM("GNU_CC") .NES. "" THEN GOTO GNU_CC_OKAY
  46. $ WRITE SYS$OUTPUT "GNU_CC logical is undefined.  You must execute the command"
  47. $ WRITE SYS$OUTPUT "file GCC_INSTALL.COM in the GNU CC directory before using"
  48. $ WRITE SYS$OUTPUT "this command file."
  49. $ EXIT
  50. $ !
  51. $ !
  52. $ GNU_CC_OKAY:
  53. $ SET COMMAND GNU_CC:[000000]GCC.CLD
  54. $ !
  55. $ !
  56. $ ! Compile genarch.c and then run it to create the arch.h header file
  57. $ !
  58. $ GCC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
  59. $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  60. SYS$SHARE:VAXCRTL/SHARE
  61. $ RUN GENARCH.EXE
  62. $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
  63. $ PURGE ARCH.H
  64. $ !
  65. $ !
  66. $ ! Create an empty object library
  67. $ !
  68. $ LIBRARY/CREATE GS.OLB
  69. $ !
  70. $ !
  71. $ ! Create a list of modules to compile and store in the object library
  72. $ !
  73. $ CREATE MODULES.LIS
  74. GDEVMEM
  75. GP_VMS
  76. GSCHAR
  77. GSCOLOR
  78. GSCOORD
  79. GSDEVICE
  80. GSFILE
  81. GSFONT
  82. GSIM2OUT
  83. GSIMAGE
  84. GSLINE
  85. GSMATRIX
  86. GSMISC
  87. GSPAINT
  88. GSPATH
  89. GSPATH2
  90. GSSTATE
  91. GSTYPE1
  92. GVIRTMEM
  93. GXCACHE
  94. GXCOLOR
  95. GXDITHER
  96. GXDRAW
  97. GXFILL
  98. GXHT
  99. GXPATH
  100. GXPATH2
  101. GXSTROKE
  102. IALLOC
  103. IDEBUG
  104. IDICT
  105. IINIT
  106. INAME
  107. INTERP
  108. ISCAN
  109. IUTIL
  110. STREAM
  111. ZARITH
  112. ZARRAY
  113. ZCHAR
  114. ZCOLOR
  115. ZCONTROL
  116. ZDEVICE
  117. ZDICT
  118. ZFILE
  119. ZFONT
  120. ZGENERIC
  121. ZGSTATE
  122. ZHT
  123. ZMATH
  124. ZMATRIX
  125. ZMISC
  126. ZPAINT
  127. ZPATH
  128. ZPATH2
  129. ZRELBIT
  130. ZSTACK
  131. ZSTRING
  132. ZTYPE
  133. ZVMEM
  134. $ !
  135. $ !
  136. $ ! NOW COMPILE AWAY!
  137. $ !
  138. $ OPEN/READ MODULE_LIST MODULES.LIS
  139. $ !
  140. $ COMPILE_LOOP:
  141. $ READ/END=END_COMPILE MODULE_LIST MODULE
  142. $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
  143. $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
  144. $ DELETE 'MODULE'.OBJ.*
  145. $ GOTO COMPILE_LOOP
  146. $ !
  147. $ END_COMPILE:
  148. $ DELETE MODULES.LIS.*
  149. $ !
  150. $ !
  151. $ ! Is the DECwindows environment about?  Must be installed in order to
  152. $ ! build the executable programs gs.exe, gt.exe, and xlib.exe.
  153. $ !
  154. $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
  155. $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
  156. $ WRITE SYS$OUTPUT "unable to build executable programs."
  157. $ GOTO DONE
  158. $ !
  159. $ CHECK2:
  160. $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
  161. $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
  162. $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
  163. $ GOTO DONE
  164. $ !
  165. $ !
  166. $ BUILD_EXES:
  167. $ !
  168. $ CREATE GDEVS.H
  169. d(gs_x11_device)
  170. $ !
  171. $ GCC'CDEF/NOLIST/OBJECT=GDEVS.OBJ GDEVS.C
  172. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ -
  173.   GDEVX.C
  174. $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
  175. $ GCC'CDEF/NOLIST/OBJECT=UTRACE.OBJ UTRACE.C
  176. $ !
  177. $ GCC'CDEF/NOLIST/OBJECT=GT.OBJ GT.C
  178. $ LINK'LDEF/NOMAP/EXE=GT.EXE GT,GSMAIN,UTRACE,GDEVX,GDEVS,-
  179.   GS/LIB/INCLUDE=GDEVMEM,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  180. SYS$SHARE:DECW$XLIBSHR/SHARE
  181. $ ! 
  182. $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
  183. $ GCC'CDEF/DEFINE=('LIBDEF')/NOLIST/OBJECT=GS.OBJ GS.C
  184. $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,UTRACE,GDEVX,GDEVS,-
  185.   GS/LIB/INCLUDE=GDEVMEM,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  186. SYS$SHARE:DECW$XLIBSHR/SHARE
  187. $ !
  188. $ DELETE GDEVX.OBJ.*,GSMAIN.OBJ.*,UTRACE.OBJ.*,GT.OBJ.*,GS.OBJ.*,GDEVS.OBJ.*
  189. $ !
  190. $ DONE:
  191. $ ! ALL DONE
  192.